package com.kikidao.app.dao;

import com.kikidao.app.exceptions.DAOCheckedExeption;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/23/12
 * Time: 4:42 PM
 */
@SuppressWarnings("UnusedDeclaration")
public interface DAO<T> {

    public void create(T transferObject) throws DAOCheckedExeption;

    public T read(T likeTransferObject) throws DAOCheckedExeption;

    public void update(T transferObject) throws DAOCheckedExeption;

    public void delete(T transferObject) throws DAOCheckedExeption;

    public List<T> list() throws DAOCheckedExeption;

}
